<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <style type="text/css">
<?php require_once("include/css/menu_style.css") ?>
<?php require_once("include/css/tablas.css") ?>

        </style>
        <title>Inversiones PUCP</title>
        <link href="http://localhost/JuegoInversiones/include/images/logo.gif" rel="SHORTCUT ICON">
            <link rel="stylesheet" media="all" type="text/css" href="include/css/menu_style.css">
                <!--[if IE]>
                <link rel="stylesheet" media="all" type="text/css" href="include/css/ie.css" />
                <![endif]-->

                </head>
                <body>
                    <div id="contenido">
                        <image src="include/images/logo.gif" style="height:60px; width:80px;" alt="logo">
                            <form id="login-form" action="index.php" method="post">
                                <fieldset style="width: 300px;">
                                    <input type="hidden" id="accion" name="accion" value="validaLogin"/>
                                    <legend>Log in</legend>
                                    <table>
                                        <tr>
                                            <th>
                                                <label for="login">Email</label>
                                            </th>
                                            <td>
                                                <input type="text" id="usuario" name="usuario"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>
                                                <label for="password">Contrase&ntilde;a</label>
                                            </th>
                                            <td>
                                                <input type="password" id="pwd" name="pwd"/>
                                            </td>
                                        </tr>
                                    </table>

                                    <div style="color: red; font-size: 12px;">
                                        <?php 
                                        if($_REQUEST['registro']==1)
                                          echo "Usuario registrado exitosamente";
                                        if (isset($_REQUEST['error']))
                                                if($_REQUEST['error']==1)
                                                    echo "Usuario o Contrase&ntilde;a inv&aacute;lidos";
                                                elseif($_REQUEST['error']==2)
                                                    echo "Correo ya registrado, si no recuerda su contrase&ntilde;a elija la opción 'Olvide Contraseña'";
                                                
                                        ?>
                                    </div>
                                    <div class="clear"></div>

                                    
                                    <a href="index.php?accion=olvidoPwd" style="padding: 130;">Olvide Contrase&ntilde;a?</a> 
                                                                  <input type="submit" style="margin: 0px 0 0 30px;" class="button" name="commit" value="Acceder"/>
                                    <br />
                                    <br />
                                    <a href="index.php?accion=formulario" style="padding: 130;">Registrarme</a>
                                    
      
                                </fieldset>
                            </form>
                    </div>



                </body></html>